Message box
Alert box
The following step definition are available to interact with an alert box:
an alert box appears
an alert box with the text "(.*)" appears
an alert box with the text containing "(.*)" appears
an alert box appears with the title "(.*)"
the user clicks the "(.*)" option in the alert box
a dialog box appears
an alert box does not appear
the user dismisses the alert box
Examples
Extract from sample: 0309-AlertBoxManagement.
#Dialog box: confirm that a dialog box appears
Then a dialog box appears
#Alert box: confirm the alert box title
Given an alert box appears with the title "Warning"
#Alert box: confirm that an alert box appears
Then an alert box appears
#Alert box: confirm the alert box appears with the following exact message
Then an alert box with the text "Reference entered on invoice PIDATP2120-000001" appears
#Alert box: check the alert box appears and contains a specific value
Then an alert box with the text containing "PIDATP2120-000001" appears
#Alert box: click the Cancel action of the alert box
Then the user clicks the "Cancel" option in the alert box
#Alert box: confirm that no alert box appears
Then an alert box does not appear
#Alert box: dismiss the alert box
Then an alert box appears
And the user dismisses the alert box
Confirmation dialog
The following step definition are available to interact with a confirmation dialog:
the user clicks the "(.*)" option in the alert box
an alert box with the text containing "(.*)" and the stored text value appears
a confirmation dialog appears with the message "(.*)"
a confirmation dialog appears containing the message "(.*)"
the user clicks "(.*)" button on the confirmation dialog
Examples
Extract from sample: 0309B-ConfirmationDialogManagement.
#Confirmation dialog: check that a confirmation dialog appears with the exact message
Given a confirmation dialog appears with the message "Record has been created"
#Confirmation dialog: check a confirmation dialog appears and contains a specific text
Given a confirmation dialog appears containing the message "Record"
#Confirmation dialog: click on the close action on the confirmation dialog
Then the user clicks "Close" button on the confirmation dialog
Extract from sample: 0309B-ConfirmationDialogManagement.
#Delete the menu profile
Then the user clicks the "Delete" main action button on the right panel
#Confirmation dialog: click on the OK action
Given the user clicks "OK" button on the confirmation dialog
#Alert box: verification of the message displayed
Then an alert box with the text "User menu profile Deletion 0 MENSP" appears
#Alert box: confirmation by clicking on the ok action
And the user clicks the "OK" opinion in the alert box